<template>
  <div class="firstlogin">
    <!-- <h1 class="login">恭喜您注册成功！</h1> -->
  </div>
</template>

<script>
export default {
  name: 'firstlogin',
  data () {
    return {
      msg: '404'
    }
  },
  mounted(){
    // console.log(window.location.href);
    // alert(window.location.href);
    this.toBackStage();
    // this.$root.share();
  },
  methods: {

    toBackStage(){

      // alert("Login");

      var locurl = sessionStorage.getItem("locurl");
      var parentUid = sessionStorage.getItem("parentUid");

      localStorage.setItem("carWashJudge",1);

      // window.location.href = "https://tecar.jslcwy.com/app/index.php?i=2&c=entryApi&do=user&m=yimi_car&op=weqingLogin&url=" + locurl +"&parent_id=" + parentUid;

      if (parentUid == '0') {

        window.location.href = "/app/index.php?i=2&c=entryApi&do=user&m=yimi_car&op=weqingLogin&url=" + locurl;

      } else {

        window.location.href = "/app/index.php?i=2&c=entryApi&do=user&m=yimi_car&op=weqingLogin&url=" + locurl +"&parent_id=" + parentUid;

      }

    },

  }
}
</script>

<style scoped>
h1, h2 {
  font-weight: normal;
  color: rgb(255, 0, 0);
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
.login{
  padding: 2rem 1rem;
}
</style>
